import { defineStore } from "pinia"
import { ref } from "vue"
// 数子计数器模块
export const userCountStore = defineStore(
  "big-count",
  () => {
    const count = ref(100)
    const add = (n) => {
      count.value += n
    }
    return {
      count,
      add
    }
  },
  {
    persist: true
  }
)
